import store from '@/store';
export default {
    // 加载遮罩
    loading(loading: any) {
        if (loading) {
            store.dispatch('coreMasking/loading', loading);
        }
    },
    // 关闭遮罩
    clear(loading: any) {
        if (loading) {
            store.dispatch('coreMasking/clear', loading);
        }
    },
    // 关闭所有遮罩
    clearAll() {
        store.commit('coreMasking/init');
    }
}